<?php
/* @var $this MessageController */
/* @var $model Message */

$this->breadcrumbs=array(
	'Messages'=>array('index'),
	$model->id,
);
?>

<div class="container">
	<ol class="breadcrumb">
		<li><?php echo CHtml::link('首页', array('/site/index'));?></li>
		<li class="active"><?php echo CHtml::link('评论', array('/message/index'));?></li>
	</ol>

    <div class="row">
        <!-- Article main content -->
        <article class="col-md-10 maincontent">
			<header class="page-header">
				<h1 class="page-title">评论详情</h1>
			</header>
            <?php $this->widget('zii.widgets.CDetailView', array(
                'data'=>$model,
                'attributes'=>array(
                    // 'id',
                    array('label'=>'内容', 'value'=>$model->content),
                    array('label'=>'书名', 'value'=>$model->book->bookname),
                    array('label'=>'评论者', 'value'=>$model->user->username),
                    array('label'=>'评论时间', 'value'=>$model->time),
                ),
            )); ?>
        </article>
        <!-- /Article -->
        <!-- Sidebar -->
        <aside class="col-md-2 sidebar sidebar-right">

            <div class="row widget">
                <div class="col-xs-12">
                    <h5><?php echo CHtml::link('评论列表', array('/message/index'));?></h5>
                    <h5><?php echo CHtml::link('评论图书', array('/message/create'));?></h5>
                    <h5><?php echo CHtml::link('更新评论', array('/message/update', 'id'=>$model->id));?></h5>
                    <h5><?php echo CHtml::link(CHtml::encode('删除评论'), array('/message/delete', 'id'=>$model->id), array('submit'=>array('/message/delete', 'id'=>$model->id),'class'=>'delete','confirm'=>'确认删除留言吗?'));?></h5>
                    <h5><?php echo CHtml::link('管理评论', array('/message/admin'));?></h5>
                </div>
            </div>
            <div class="row widget">
                <div class="col-xs-12">
                    <p><img src="<?php echo Yii::app()->request->baseUrl; ?><?php echo Yii::app()->request->baseUrl; ?>/Progressus//assets/images/1.jpg" alt=""></p>
                </div>
            </div>
            <div class="row widget">
                <div class="col-xs-12">
                    <p><img src="<?php echo Yii::app()->request->baseUrl; ?><?php echo Yii::app()->request->baseUrl; ?>/Progressus//assets/images/2.jpg" alt=""></p>
                </div>
            </div>

        </aside>
        <!-- /Sidebar -->
    </div>
</div>
